#from configuration import Configuration
#from handlers import WSAdmin_handler

import sys

prefix = "/home/logview/wsadmin/"
print "Loading wsadminlib...."
execfile ('%swsadminlib.py'%(prefix,))
print "Loading handlers.py...."
execfile ('%shandlers.py'%(prefix,))
print "Loading configuration.py...."
execfile ('%sconfiguration.py'%(prefix,))

if len(sys.argv) > 0:
    config = sys.argv[0]
else:
    config = "%sconfiguration.xml"%(prefix,)


DEBUG_SOP = 1

Configuration (config, WSAdmin_handler ("mhqsa046Node10", "server1")).parse()
print "Configuration is being saved..."
AdminConfig.save()


